<div class="rs_layout_top">
	<#if measure??>
	<div class="task_title2">
		<img src="/assets/images/ruler_triangle1.png"/><b>${measure.name!''}</b> 指标权限
		<span style="float: right;padding-right:5px;">
			<a href="/${orgi}/user/report/pub/organ/selUser.html?sub=true&seltype=measure&cubeid=${cube.id!''}&measureid=${measure.id!''}" data-toggle="ajax" title="指标 “${measure.name!''}” 授权" data-width="750">
				<img src="/assets/images/ctr-icons-7.png" width="14" height="14">
			</a>
		</span>
	</div>
	<#elseif cubelevel??>
	<div class="task_title2">
		<img src="/assets/images/dimensions.png"/><b>${cubelevel.name!''}</b> 维度成员权限
		<span style="float: right;padding-right:5px;">
			<a href="/${orgi}/user/report/pub/organ/selUser.html?sub=true&seltype=measure&cubeid=${cube.id!''}&levelid=${cubelevel.id!''}" data-toggle="ajax" title="成员 “${cubelevel.name!''}” 授权" data-width="750">
				<img src="/assets/images/ctr-icons-7.png" width="14" height="14">
			</a>
		</span>
	</div>
	<#else>
	<div class="task_title2"> <b>“${cube.name!''}”</b> 模型权限
		<span style="float: right;padding-right:5px;">
			<a href="/${orgi}/user/report/pub/organ/selUser.html?sub=true&seltype=model&cubeid=${cube.id!''}" data-toggle="ajax" title="模型 “${cube.name!''}” 授权" data-width="350">
				<img src="/assets/images/ctr-icons-7.png" width="14" height="14">
			</a>
		</span>
	</div>  
	</#if>
		
</div>
<div class="rs_layout_center">
	<div class="tableScrollWrap" style="position:relative;padding:10px;">
		
		<#if measure??>
		<p>指定指标“<img src="/assets/images/ruler_triangle1.png"/><b>${measure.name!''}</b>”的访问权限。默认情况下，允许所有人访问，设定权限后，根据设定的权限访问规则访问。</p>
		<#elseif cubelevel??>
		<p>指定成员“<img src="/assets/images/dimensions.png"/><b>${cubelevel.name!''}</b>”的访问权限。默认情况下，允许所有人访问，设定权限后，根据设定的权限访问规则访问。</p>
		<#else>
		<p>指定<b>“${cube.name!''}”</b> 模型的访问权限。默认情况下，模型允许所有人访问，设定权限后，根据设定的权限访问规则访问。</p>
		</#if>
		
		<div class="check_top" style="margin-top:0px;">
			<label class="check_box"></label><span></span>
		</div>
		<div class="check_bottom">
			<div class="check_box_con" style="width:100%;margin-left:0px;">
				<table width="100%" cellspacing="0" cellpadding="0">
					<tr>
						<th width="19"><span>&nbsp;</span></th>
						<th style="text-align:left;">角色</th>
						<th style="text-align:left;width:130px;">创建时间</th>
						<th style="text-align:left;width:50px;">允许</th>
						<th style="text-align:left;width:50px;">禁止</th>
						<th style="text-align:left;width:50px;">操作</th>
					</tr>
					<#if authlist??>
					<#list authlist as auth>
					<tr>
						<td  style="padding:2px;" align="center"><img src="/assets/images/ctr-icons-7.png" width="14" height="14"></td>
						<td style="padding:2px;">
							<span>
							${auth.ownerid!''}
							</span>
						</td>
						<td style="padding:2px;">${auth.createtime?string("yyyy-MM-dd HH:mm:ss")}</td>
						<td style="padding:2px;"><#if auth.authread?? && auth.authread="1"><i class="icons_tablelist icons_tablelist_succes" title="允许"></i></#if></td>
						<td style="padding:2px;"><#if auth.authread?? && auth.authread="0"><i class="icons_tablelist icons_tablelist_succes" title="禁止"></i></#if></td>
						<td style="padding:2px;"><a onclick="loadURL('/${orgi}/dm/cube/${cube.id!''}/roleauthdel/${auth.id!''}.html?a=b<#if measure??>&measureid=${measure.id!''}</#if><#if cubelevel??>&levelid=${cubelevel.id!''}</#if>','#auth',null);" href="javascript:void(0)" ><img src="/assets/images/authdel.png"></a></td>
					</tr>
					</#list>
					<#else>
					 <tr>
						<td align="center" colspan="6" style="height:150px;font-weight:bold;font-style:oblique;"><span style="height:50px;">无授权信息</span></td>
					</tr>
					</#if>
				</table>
			</div>
		</div>
	</div>
</div>